import axios from "./axios";

export function getUserDetail(uid) {
  return axios({
    url: "/user/detail",
    params: {
      uid,
    },
  });
}
export function getUserImg(uid) {
  return axios({
    url: "/user/detail",
    params: {
      uid,
    },
  });
}

export function getUserAudio(uid) {
  return axios({
    url: "/user/audio",
    params: {
      uid,
    },
  });
}

export function getUserListenRank(uid, type) {
  return axios({
    url: "/user/record",
    params: {
      uid,
      type,
    },
  });
}

export function getUserPlaylist(uid, limit, offset) {
  return axios({
    url: "/user/playlist",
    params: {
      uid,
      limit,
      offset,
    },
  });
}

export function getUserFollows(uid, limit, offset) {
  return axios({
    url: "/user/follows",
    params: {
      uid,
      limit,
      offset,
    },
  });
}

export function getUserFans(uid, limit, offset) {
  return axios({
    url: "/user/followeds",
    params: {
      uid,
      limit,
      offset,
    },
  });
}

export function getUserEvent(uid, limit, lasttime) {
  return axios({
    url: "/user/event",
    params: {
      uid,
      limit,
      lasttime,
    },
  });
}
// 动态评论
export function getCommentEvent(threadId) {
  return axios({
    url: "/comment/event",
    params: {
      threadId,
    },
  });
}
